<html manifest="IGNORE.manifest" lang="zh-CN" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"><!DOCTYPE html>
<html manifest="IGNORE.manifest" class="xiangqingddddd" lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
    <link rel="stylesheet" type="text/css" href="./css/reset.css" th:href="@{${uiPath} + ${appName} + '/css/reset.css'}"/>
    <link rel="stylesheet" type="text/css" href="../css/index.css" th:href="@{${uiPath} + ${appName} + '/css/index.css'}"/>
    <link rel="stylesheet" type="text/css" href="../css/zdialog.css"  th:href="@{${uiPath} + ${appName} + '/css/zdialog.css'}"/>

</head>
<body>
<div class="yhzong"> 
     <div class="toubu">
       <p class="biaoti">我的材料订单</p>
        <a href="yezhuTicket.html"><img class="fanhui" src="../images/raw_1503386635.png" alt="" th:src="@{${uiPath} + ${appName} + '/images/raw_1504156605.png'}"></a>
     </div> 
     <div class="kuai"> </div>
     <div class="khClmytickettop">
             <p class="khCLtickdaifu">待付款</p>
             <p class="khCLtickyifu">已付款</p>
             <p class="khCLtickyiwan">已收货</p>
     </div>
     <div class="cldaifu" th:each="orderUsers:${orderUsers}" th:data="${orderUsers.payState}"  th:if="${orderUsers.payState==1||orderUsers.payState==2||orderUsers.payState==3||orderUsers.payState==4}" th:style="'display:none'">
           <div class="clsdingdanbinhao">
         <p class="clsddbhnum" th:text="'支付编号:'+${orderUsers.id}">支付编号：20070301190901</p>
         <p class="clsddvtime" th:text="${orderUsers.createTime}">2017-1-2 12:21:45</p>
     </div>
     <div class="shangpincls" th:data="${orderUsers.payState}"  th:if="${orderUsers.payState==1||orderUsers.payState==2||orderUsers.payState==3||orderUsers.payState==4}" th:style="'display:none'">
         <div class="clsshangplis" th:each="orderUsersInfo:${orderUsers.orderUserInfoList}" >
             <dl>
                 <dt class="clscplisttouxiang">
                     <img class="touxiangclscp" src="images/raw_1503387359.jpeg" alt="" th:src="${orderUsersInfo.materialGoodsModel.imgUrl}">
                 </dt>
                 <dd class="clscpxiangqinged">
                     <p class="clscpnmae"><b th:text="${orderUsersInfo.materialGoods.goodsName}">商品名称</b></p>
                     <p class="clsspxinghao">商品型号：<span th:text="${orderUsersInfo.materialGoodsModel.modelName}">MK2006</span></p>
                     <p class="clsspyanse">商品颜色：<span th:text="${orderUsersInfo.materialGoodsModel.color}">紫色</span></p>
                     <p class="clsspcicun">商品尺寸：<span th:text="${orderUsersInfo.materialGoodsModel.size}">20*12*110</span></p>
                     <p class="clscpgoumsl">购买数量：<span th:text="${orderUsersInfo.count}">2</span></p>
                     <p class="clsspprice" th:text="'￥'+${orderUsersInfo.price}">¥ 100.00</p>
                 </dd>
                 <dd class="shuliangxiangq">
                     <p class="shuliangnum" th:text="'x'+${orderUsersInfo.count}">x1</p>
                 </dd>
                 <p class="querensh" th:if="${orderUsersInfo.payState==1}">未发货</p>
                 <p class="querensh" th:if="${orderUsersInfo.payState==3}">去评价</p>
                 <p class="querensh" th:if="${orderUsersInfo.payState==4}">已评价</p>
                 <p class="querensh" th:data="${orderUsersInfo.orderUserInfoId}" th:if="${orderUsersInfo.payState==2}" onclick="btnSh(this)">确认收货</p>
             </dl>
         </div>
         <div class="fukuan">
             <p class="heji" th:text="${orderUsers.payPrice}">合计：¥200.00</p>
             <a th:href="@{'/orderUser/orderToPay?id='+${orderUsers.id}}">
                 <p class="quzhifu" th:if="${orderUsers.payState==0}" >去支付</p></a>
             <p class="quzhifu" th:unless="${orderUsers.payState==0}">已付款</p>
         </div>
     </div>
     </div>
         <div class="cldaifu" th:each="orderUsers:${orderUsers}" th:data="${orderUsers.payState}"   th:if="${orderUsers.payState==0}">
             <div class="clsdingdanbinhao">
                 <p class="clsddbhnum" th:text="'支付编号:'+${orderUsers.id}">支付编号：20070301190901</p>
                 <p class="clsddvtime" th:text="${orderUsers.createTime}">2017-1-2 12:21:45</p>
             </div>
         <div class="shangpincls" th:data="${orderUsers.payState}"  th:if="${orderUsers.payState==0}">
             <div class="clsshangplis" th:each="orderUsersInfo:${orderUsers.orderUserInfoList}" >
                 <dl>
                     <dt class="clscplisttouxiang">
                         <img class="touxiangclscp" src="images/raw_1503387359.jpeg" alt="" th:src="${orderUsersInfo.materialGoodsModel.imgUrl}">
                     </dt>
                     <dd class="clscpxiangqinged">
                         <p class="clscpnmae"><b th:text="${orderUsersInfo.materialGoods.goodsName}">商品名称</b></p>
                         <p class="clsspxinghao">商品型号：<span th:text="${orderUsersInfo.materialGoodsModel.modelName}">MK2006</span></p>
                         <p class="clsspyanse">商品颜色：<span th:text="${orderUsersInfo.materialGoodsModel.color}">紫色</span></p>
                         <p class="clsspcicun">商品尺寸：<span th:text="${orderUsersInfo.materialGoodsModel.size}">20*12*110</span></p>
                         <p class="clscpgoumsl">购买数量：<span th:text="${orderUsersInfo.count}">2</span></p>
                         <p class="clsspprice" th:text="'￥'+${orderUsersInfo.price}">¥ 100.00</p>
                     </dd>
                     <dd class="shuliangxiangq">
                         <p class="shuliangnum" th:text="'x'+${orderUsersInfo.count}">x1</p>
                     </dd>
                     <p class="querensh" th:if="${orderUsersInfo.payState==1}">未发货</p>
                     <p class="querensh" th:if="${orderUsersInfo.payState==3}">去评价</p>
                     <p class="querensh" th:if="${orderUsersInfo.payState==4}">已评价</p>
                     <p class="querensh" th:if="${orderUsersInfo.payState==2}"   onclick="btnSh(this)">确认收货</p>
                 </dl>
             </div>
             <div class="fukuan">
                 <p class="heji" th:text="'合计：'+${orderUsers.payPrice}">合计：¥200.00</p>
                 <a th:href="@{'/orderUser/orderToPay?id='+${orderUsers.id}}">
                  <p class="quzhifu" th:if="${orderUsers.payState==0}" >去支付</p></a>
                 <p class="quzhifu" th:unless="${orderUsers.payState==0}">已付款</p>

             </div>
         </div>
     </div>

     
     <!-- 已付款 -->
     <!--<div class="clyifu">-->
           <!--<div class="clsdingdanbinhao">-->
         <!--<p class="clsddbhnum">订单编号：20070301190901</p>-->
         <!--<p class="clsddvtime">2017-1-2 12:21:45</p>-->
     <!--</div>-->
     <!--<div class="shangpincls">-->
         <!--<div class="clsshangplis">-->
             <!--<dl>-->
                 <!--<dt class="clscplisttouxiang">-->
                     <!--<img class="touxiangclscp" src="../images/raw_1503387359.jpeg" alt="" th:src="@{${uiPath} + ${appName} + '/images/raw_1504156605.png'}">-->
                 <!--</dt>-->
                 <!--<dd class="clscpxiangqinged">-->
                     <!--<p class="clscpnmae"><b>商品名称</b></p>-->
                     <!--<p class="clsspxinghao">商品型号：<span>MK2006</span></p>-->
                     <!--<p class="clsspyanse">商品颜色：<span>紫色</span></p>-->
                     <!--<p class="clsspcicun">商品尺寸：<span>20*12*110</span></p>-->
                     <!--<p class="clscpgoumsl">购买数量：<span>2</span></p>-->
                     <!--<p class="clsspprice">¥ 100.00</p>-->
                 <!--</dd>-->
                 <!--<dd class="shuliangxiangq">-->
                     <!--<p class="shuliangnum">x1</p>-->
                 <!--</dd>-->
             <!--</dl>-->
         <!--</div>-->
          <!--<div class="clsshangplis">-->
             <!--<dl>-->
                 <!--<dt class="clscplisttouxiang">-->
                     <!--<img class="touxiangclscp" src="../images/raw_1503973407.jpeg" alt="" th:src="@{${uiPath} + ${appName} + '/images/raw_1504156605.png'}">-->
                 <!--</dt>-->
                 <!--<dd class="clscpxiangqinged">-->
                     <!--<p class="clscpnmae"><b>商品名称</b></p>-->
                     <!--<p class="clsspxinghao">商品型号：<span>MK2007</span></p>-->
                     <!--<p class="clsspyanse">商品颜色：<span>白色</span></p>-->
                     <!--<p class="clsspcicun">商品尺寸：<span>20*12*110</span></p>-->
                     <!--<p class="clscpgoumsl">购买数量：<span>1</span></p>-->
                     <!--<p class="clsspprice">¥ 100.00</p>-->
                 <!--</dd>-->
                  <!--<dd class="shuliangxiangq">-->
                     <!--<p class="shuliangnum">x2</p>-->
                 <!--</dd>-->
             <!--</dl>-->
         <!--</div>-->
         <!--<div class="fukuan">-->
             <!--<p class="heji">合计：¥200.00</p>-->
             <!--<p class="quzhifu">确认收货</p>-->
         <!--</div>-->
     <!--</div>-->
      <!--<div class="shangpincls">-->
         <!--<div class="clsshangplis">-->
             <!--<dl>-->
                 <!--<dt class="clscplisttouxiang">-->
                     <!--<img class="touxiangclscp" src="../images/raw_1503387359.jpeg" alt="" th:src="@{${uiPath} + ${appName} + '/images/raw_1504156605.png'}">-->
                 <!--</dt>-->
                 <!--<dd class="clscpxiangqinged">-->
                     <!--<p class="clscpnmae"><b>商品名称</b></p>-->
                     <!--<p class="clsspxinghao">商品型号：<span>MK2006</span></p>-->
                     <!--<p class="clsspyanse">商品颜色：<span>紫色</span></p>-->
                     <!--<p class="clsspcicun">商品尺寸：<span>20*12*110</span></p>-->
                     <!--<p class="clscpgoumsl">购买数量：<span>2</span></p>-->
                     <!--<p class="clsspprice">¥ 100.00</p>-->
                 <!--</dd>-->
                 <!--<dd class="shuliangxiangq">-->
                     <!--<p class="shuliangnum">x1</p>-->
                 <!--</dd>-->
             <!--</dl>-->
         <!--</div>-->
          <!--<div class="clsshangplis">-->
             <!--<dl>-->
                 <!--<dt class="clscplisttouxiang">-->
                     <!--<img class="touxiangclscp" src="../images/raw_1503973407.jpeg" alt="" th:src="@{${uiPath} + ${appName} + '/images/raw_1504156605.png'}">-->
                 <!--</dt>-->
                 <!--<dd class="clscpxiangqinged">-->
                     <!--<p class="clscpnmae"><b>商品名称</b></p>-->
                     <!--<p class="clsspxinghao">商品型号：<span>MK2007</span></p>-->
                     <!--<p class="clsspyanse">商品颜色：<span>白色</span></p>-->
                     <!--<p class="clsspcicun">商品尺寸：<span>20*12*110</span></p>-->
                     <!--<p class="clscpgoumsl">购买数量：<span>1</span></p>-->
                     <!--<p class="clsspprice">¥ 100.00</p>-->
                 <!--</dd>-->
                  <!--<dd class="shuliangxiangq">-->
                     <!--<p class="shuliangnum">x2</p>-->
                 <!--</dd>-->
             <!--</dl>-->
         <!--</div>-->
         <!--<div class="fukuan">-->
             <!--<p class="heji">收货码：<span>8324(验货后交给配送员)</span></p>-->
             <!--<p class="quzhifu">确认收货</p>-->
         <!--</div>-->
      <!--</div>-->
     <!--</div>-->
     <!-- 已收货 -->
    <!--<div class="clyishou">-->
           <!--<div class="clsdingdanbinhao">-->
         <!--<p class="clsddbhnum">订单编号：20070301190901</p>-->
         <!--<p class="clsddvtime">2017-1-2 12:21:45</p>-->
     <!--</div>-->
     <!--<div class="shangpincls">-->
         <!--<div class="clsshangplis">-->
             <!--<dl>-->
                 <!--<dt class="clscplisttouxiang">-->
                     <!--<img class="touxiangclscp" src="../images/raw_1503387359.jpeg" alt="" th:src="@{${uiPath} + ${appName} + '/images/raw_1504156605.png'}">-->
                 <!--</dt>-->
                 <!--<dd class="clscpxiangqinged">-->
                     <!--<p class="clscpnmae"><b>商品名称</b></p>-->
                     <!--<p class="clsspxinghao">商品型号：<span>MK2006</span></p>-->
                     <!--<p class="clsspyanse">商品颜色：<span>紫色</span></p>-->
                     <!--<p class="clsspcicun">商品尺寸：<span>20*12*110</span></p>-->
                     <!--<p class="clscpgoumsl">购买数量：<span>2</span></p>-->
                     <!--<p class="clsspprice">¥ 100.00</p>-->
                 <!--</dd>-->
                 <!--<dd class="shuliangxiangq">-->
                     <!--<p class="shuliangnum">x1</p>-->
                 <!--</dd>-->
             <!--</dl>-->
         <!--</div>-->
          <!--<div class="clsshangplis">-->
             <!--<dl>-->
                 <!--<dt class="clscplisttouxiang">-->
                     <!--<img class="touxiangclscp" src="../images/raw_1503973407.jpeg" alt="" th:src="@{${uiPath} + ${appName} + '/images/raw_1504156605.png'}">-->
                 <!--</dt>-->
                 <!--<dd class="clscpxiangqinged">-->
                     <!--<p class="clscpnmae"><b>商品名称</b></p>-->
                     <!--<p class="clsspxinghao">商品型号：<span>MK2007</span></p>-->
                     <!--<p class="clsspyanse">商品颜色：<span>白色</span></p>-->
                     <!--<p class="clsspcicun">商品尺寸：<span>20*12*110</span></p>-->
                     <!--<p class="clscpgoumsl">购买数量：<span>1</span></p>-->
                     <!--<p class="clsspprice">¥ 100.00</p>-->
                 <!--</dd>-->
                  <!--<dd class="shuliangxiangq">-->
                     <!--<p class="shuliangnum">x2</p>-->
                 <!--</dd>-->
             <!--</dl>-->
         <!--</div>-->
         <!--<div class="fukuan">-->
             <!--<p class="heji">收货码：<span>8324(验货后交给配送员)</span></p>-->
         <!--</div>-->
     <!--</div>-->
      <!--<div class="shangpincls">-->
         <!--<div class="clsshangplis">-->
             <!--<dl>-->
                 <!--<dt class="clscplisttouxiang">-->
                     <!--<img class="touxiangclscp" src="../images/raw_1503387359.jpeg" alt="" th:src="@{${uiPath} + ${appName} + '/images/raw_1504156605.png'}">-->
                 <!--</dt>-->
                 <!--<dd class="clscpxiangqinged">-->
                     <!--<p class="clscpnmae"><b>商品名称1</b></p>-->
                     <!--<p class="clsspxinghao">商品型号：<span>MK2006</span></p>-->
                     <!--<p class="clsspyanse">商品颜色：<span>紫色</span></p>-->
                     <!--<p class="clsspcicun">商品尺寸：<span>20*12*110</span></p>-->
                     <!--<p class="clscpgoumsl">购买数量：<span>2</span></p>-->
                     <!--<p class="clsspprice">¥ 100.00</p>-->
                 <!--</dd>-->
                 <!--<dd class="shuliangxiangq">-->
                     <!--<p class="shuliangnum">x1</p>-->
                 <!--</dd>-->
             <!--</dl>-->
         <!--</div>-->
          <!--<div class="clsshangplis">-->
             <!--<dl>-->
                 <!--<dt class="clscplisttouxiang">-->
                     <!--<img class="touxiangclscp" src="../images/raw_1503973407.jpeg" alt="" th:src="@{${uiPath} + ${appName} + '/images/raw_1504156605.png'}">-->
                 <!--</dt>-->
                 <!--<dd class="clscpxiangqinged">-->
                     <!--<p class="clscpnmae"><b>商品名称1</b></p>-->
                     <!--<p class="clsspxinghao">商品型号：<span>MK2007</span></p>-->
                     <!--<p class="clsspyanse">商品颜色：<span>白色</span></p>-->
                     <!--<p class="clsspcicun">商品尺寸：<span>20*12*110</span></p>-->
                     <!--<p class="clscpgoumsl">购买数量：<span>1</span></p>-->
                     <!--<p class="clsspprice">¥ 100.00</p>-->
                 <!--</dd>-->
                  <!--<dd class="shuliangxiangq">-->
                     <!--<p class="shuliangnum">x2</p>-->
                 <!--</dd>-->
             <!--</dl>-->
         <!--</div>-->
         <!--<div class="fukuan">-->
             <!--<p class="heji">收货码：<span>8324(验货后交给配送员)</span></p>-->
         <!--</div>-->
      <!--</div>-->
     <!--</div>-->
</div>

<script type="text/javascript" src="../js/flexible.js" th:src="@{${uiPath} + ${appName} + '/js/flexible.js'}"></script>
<script type="text/javascript" src="../js/jquery.min.js" th:src="@{${uiPath} + ${appName} + '/js/jquery.min.js'}"></script>
<script type="text/javascript" src="../js/index.js" th:src="@{${uiPath} + ${appName} + '/js/index.js'}"></script>
<script type="text/javascript" src="../js/zdialog.js" th:src="@{${uiPath} + ${appName} + '/js/zdialog.js'}"></script>

<script>

    var obj = "";
    function btnSh(obj1){
        obj=obj1
        $.DialogByZ.Confirm({Title: "提交成功", Content:"是否确定收货，确定收货后货款将实时打入材料商账户" ,BtnL:"确定",BtnR:"取消" ,FunL:queren,FunR: guanbi()});

    }
    function  queren() {
        $.ajax({
            url:"/ownerOrder/qrsh",
            data:{'id':$(obj).attr('data')},
            type:'post',
            dataType:'json',
            success:function (result) {
                if(result.code==1){
                    $.DialogByZ.Close();
                    $.DialogByZ.Alert({Title: "提交成功", Content:"已确认收货",BtnL:"确定",FunL:localhref})
                }
            }

        })

    }
    function  localhref() {
        window.location.href="/ownerOrder/materialOrder";

    }
    function guanbi() {
        
    }
    </script>
</body>
</html>